package com.cn.hnust.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.cn.hnust.pojo.User;
import com.cn.hnust.util.Page;

public interface UserMapper {
    int deleteByPrimaryKey(int user_id);

    int insert(User user);

    int insertSelective(User record);

    User selectByPrimaryKey(int user_id);
    
    List<User> getUsers();

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    User getUser(String user);
    
    List<User> selectPersons(@Param("userName")String userName,@Param("page")Page page);
    
    
    List<User> queryAllRecord(@Param("page")Page page);

   
    int getCount();
    
    int getCountmh(@Param("userName")String userName);
    
    
    
}